//
//  SDAlertViewController.h
//  SDAlertView
//
//  Created by sander on 2017/10/23.
//

#import <UIKit/UIKit.h>

#import "SDCompositeService.h"

typedef NS_ENUM(NSInteger, SDAlertControllerStyle) {
    SDAlertControllerStyleActionSheet = 0,
    SDAlertControllerStyleAlert
} NS_ENUM_AVAILABLE_IOS(8_0);

@interface SDAlertViewController : UIViewController


@property (nonatomic, assign) CGFloat action_button_height;

@property (nonatomic, copy) SDActionButtonBlock disMissActionBlock;



/**
 建立初始化默认的alert

 @param title alert 的title
 @param message alert 的message
 @return self
 */
+ (SDAlertViewController * )alertTitle:(NSString * )title message:(NSString * )message;

+ (SDAlertViewController * )alertTitle:(NSString * )title contentView:(UIView * )content;


/**
 建立默认的action sheet

 @param title 默认的title
 @return self
 */
+ (SDAlertViewController * )actionSheetWithTitle:(NSString * )title;

/**
 添加一个alert 操作的按钮 到数组中。。。
 @param title alert的按钮的title
 @param alertBlock alert的操作的alert
 */
- (void)addAlertButton:(NSAttributedString *)title andActionSelected:(BOOL)isSelected alertAction:(SDActionButtonBlock)alertBlock;

- (void)addAlertButton:(NSAttributedString *)title alertAction:(SDActionButtonBlock)alertBlock;




/**
 alert 出现
 */
- (void)showAlert;

/**
 alert 消失
 */
- (void)dismissAlert:(void(^)(void))completion;


- (void)sd_configAlertButtonViewList;



@end
